package com.qf.service.impl;

import com.qf.dao.CarDao;
import com.qf.pojo.Car;
import com.qf.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements CarService {
    @Autowired(required = false)
    private CarDao carDao;
    @Override
    public int add(Car cid) {
        return carDao.add(cid);
    }

    @Override
    public Car selectOne(int cid) {
        return carDao.selectOne(cid);
    }

    @Override
    public List<Car> selectAll() {
        return carDao.selectAll();
    }

    @Override
    public int delete(int cid) {
        return carDao.delete(cid);
    }

    @Override
    public int update(Car car) {
        return carDao.update(car);
    }
}
